<template>
  <div class="home">
    home组件使用helloWord组件
    <HelloWorld msg="Welcome to Your Vue.js App"/>
    <About></About>
    <p>测试外部模块dayjs{{day}}</p>
    <el-button type="primary">element的按钮</el-button>
  </div>
</template>

<script>
// @ is an alias to /src
// 如果使用了vue的别名@ rollup 找不到文件路径，需要使用相对路径
// import HelloWorld from '../components/HelloWorld.vue'
import HelloWorld from '@/components/HelloWorld.vue'
import About from '@/views/About.vue'
import dayjs from 'dayjs'
export default {
  name: 'Home',
  components: {
    HelloWorld,
    About
  },
  data () {
    return {
      day: ''
    }
  },
  created () {
    this.day = dayjs().format('YYYY-MM-DD')
  }
}
</script>
